import { Field, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class OrderTimeType {
  @Field({
    description: '开始时间',
    nullable: true,
  })
  startTime: string;
  @Field({
    description: '结束时间',
    nullable: true,
  })
  endTime: string;
  @Field({
    description: '序号',
    nullable: true,
  })
  key: number;
}
@ObjectType()
export class ReducibleTimeType {
  @Field({
    description: '周几',
    nullable: true,
  })
  week: string;
  @Field(() => [OrderTimeType], {
    description: '可约时间 json',
    nullable: true,
  })
  orderTime: string;
}
